package com.huadi.ssm.service;

import com.huadi.ssm.dao.EventMapper;
import com.huadi.ssm.po.Event;
import com.huadi.ssm.po.EventExample;

import java.util.List;

public class EventServiceImpl implements EventMapper {

    private  EventMapper eventMapper;

    public void setEventMapper(EventMapper eventMapper) {
        this.eventMapper = eventMapper;
    }

    @Override
    public long countByExample(EventExample example) {
        return eventMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(EventExample example) {
        return eventMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(String eventId) {
        return eventMapper.deleteByPrimaryKey(eventId);
    }

    @Override
    public int insert(Event record) {
        return eventMapper.insert(record);
    }

    @Override
    public int insertSelective(Event record) {
        return eventMapper.insertSelective(record);
    }

    @Override
    public List<Event> selectByExample(EventExample example) {
        return eventMapper.selectByExample(example);
    }

    @Override
    public Event selectByPrimaryKey(String eventId) {
        return eventMapper.selectByPrimaryKey(eventId);
    }

    @Override
    public int updateByExampleSelective(Event record, EventExample example) {
        return eventMapper.updateByExampleSelective(record, example);
    }

    @Override
    public int updateByExample(Event record, EventExample example) {
        return eventMapper.updateByExample(record, example);
    }

    @Override
    public int updateByPrimaryKeySelective(Event record) {
        return eventMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Event record) {
        return eventMapper.updateByPrimaryKey(record);
    }
}
